Platform Explorer / Nuxeo Platform 2023.22

Contribution org.nuxeo.ecm.platform.forms.layouts.webapp--widgets

This contribution is part of XML component org.nuxeo.ecm.platform.forms.layouts.webapp inside nuxeo-platform-webapp-core-2023.22.13.jar /OSGI-INF/layouts-contrib.xml

Extension Point

Extension point widgets of component WebLayoutManager.

Registration Order

16
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <widget name="nature" type="suggestOneDirectory">
          <labels>
            <label mode="any">label.dublincore.nature</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:nature</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.nature?'hidden':'view'}</mode>
          </widgetModes>
          <properties mode="any">
            <property name="width">100%</property>
            <property name="minChars">0</property>
            <property name="hideHelpLabel">true</property>
            <property name="directoryName">nature</property>
            <property name="localize">true</property>
          </properties>
        </widget>
  • <widget name="subjects" type="suggestManyDirectory">
          <labels>
            <label mode="any">label.dublincore.subject</label>
          </labels>
          <helpLabels>
            <label mode="edit">label.dublincore.subjects.info</label>
          </helpLabels>
          <translated>true</translated>
          <fields>
            <field>dc:subjects</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.subjects?'hidden':'view'}</mode>
          </widgetModes>
          <properties mode="any">
            <property name="width">100%</property>
            <property name="dbl10n">true</property>
            <property name="minChars">0</property>
            <property name="hideHelpLabel">true</property>
            <property name="directoryName">l10nsubjects</property>
          </properties>
        </widget>
  • <widget name="rights" type="text">
          <labels>
            <label mode="any">label.dublincore.rights</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:rights</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.rights?'hidden':'view'}</mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="source" type="text">
          <labels>
            <label mode="any">label.dublincore.source</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:source</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.source?'hidden':'view'}</mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="coverage" type="suggestOneDirectory">
          <labels>
            <label mode="any">label.dublincore.coverage</label>
          </labels>
          <helpLabels>
            <label mode="edit">label.dublincore.coverage.info</label>
          </helpLabels>
          <translated>true</translated>
          <fields>
            <field>dc:coverage</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.coverage?'hidden':'view'}</mode>
          </widgetModes>
          <properties mode="any">
            <property name="width">100%</property>
            <property name="dbl10n">true</property>
            <property name="minChars">0</property>
            <property name="hideHelpLabel">true</property>
            <property name="directoryName">l10ncoverage</property>
          </properties>
        </widget>
  • <widget name="created" type="datetime">
          <labels>
            <label mode="any">label.dublincore.created</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:created</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.created?'hidden':'view'}</mode>
            <mode value="any">view</mode>
            <mode value="pdf">pdf</mode>
          </widgetModes>
          <properties widgetMode="any">
            <property name="pattern">#{nxu:basicDateAndTimeFormatter()}</property>
          </properties>
        </widget>
  • <widget name="modified" type="datetime">
          <labels>
            <label mode="any">label.dublincore.modified</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:modified</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.modified?'hidden':'view'}</mode>
            <mode value="any">view</mode>
            <mode value="pdf">pdf</mode>
          </widgetModes>
          <properties widgetMode="any">
            <property name="pattern">#{nxu:basicDateAndTimeFormatter()}</property>
          </properties>
        </widget>
  • <widget name="format" type="text">
          <labels>
            <label mode="any">label.dublincore.format</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:format</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.format?'hidden':'view'}</mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="language" type="text">
          <labels>
            <label mode="any">label.dublincore.language</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:language</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.language?'hidden':'view'}</mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="expired" type="datetime">
          <labels>
            <label mode="any">label.dublincore.expired</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:expired</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.expired?'hidden':'view'}</mode>
          </widgetModes>
          <properties widgetMode="any">
            <property name="pattern">#{nxu:basicDateFormatter()}</property>
          </properties>
          <properties widgetMode="edit">
            <property name="format">#{nxu:basicDateFormatter()}</property>
          </properties>
        </widget>
  • <widget name="author" type="template">
          <labels>
            <label mode="any">label.dublincore.creator</label>
          </labels>
          <helpLabels>
            <label mode="edit">label.dublincore.author.info</label>
          </helpLabels>
          <translated>true</translated>
          <fields>
            <field>dc:creator</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.creator?'hidden':'view'}</mode>
            <mode value="any">view</mode>
            <mode value="pdf">pdf</mode>
          </widgetModes>
          <properties mode="any">
            <property name="template">
              /widgets/single_user_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="contributors" type="template">
          <labels>
            <label mode="any">label.dublincore.contributors</label>
          </labels>
          <helpLabels>
            <label mode="edit">label.dublincore.contributors.info</label>
          </helpLabels>
          <translated>true</translated>
          <fields>
            <field>dc:contributors</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.contributors?'hidden':'view'}
            </mode>
          </widgetModes>
          <properties mode="any">
            <property name="template">/widgets/contributors_widget.xhtml</property>
          </properties>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="lastContributor" type="template">
          <labels>
            <label mode="any">label.dublincore.lastContributor</label>
          </labels>
          <helpLabels>
            <label mode="edit">label.dublincore.lastContributor.info</label>
          </helpLabels>
          <translated>true</translated>
          <fields>
            <field>dc:lastContributor</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.lastContributor?'hidden':'view'}
            </mode>
            <mode value="any">view</mode>
            <mode value="pdf">pdf</mode>
          </widgetModes>
          <properties mode="any">
            <property name="template">
              /widgets/single_user_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="title" type="text">
          <labels>
            <label mode="any">title</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:title</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.title?'hidden':'view'}</mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="required">true</property>
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="description" type="textarea">
          <labels>
            <label mode="any">description</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>dc:description</field>
          </fields>
          <widgetModes>
            <mode value="view_summary">#{empty layoutValue.dc.description?'hidden':'view'}
            </mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="file" type="extendedFile">
          <labels>
            <label mode="any">label.file.content</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>file:content</field>
            <field>file:content/name</field>
          </fields>
        </widget>
  • <widget name="note" type="richtext_with_mimetype">
          <labels>
            <label mode="any">note</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>note:note</field>
            <field>note:mime_type</field>
          </fields>
        </widget>
  • <widget name="files" type="template">
          <labels>
            <label mode="any">label.files.files</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field schema="files">files</field>
          </fields>
          <properties mode="any">
            <property name="template">
              /widgets/files_list_widget_template.xhtml
            </property>
          </properties>
          <properties widgetMode="edit">
            <property name="diff">true</property>
          </properties>
          <subWidgets>
            <widget name="file" type="template">
              <labels>
                <label mode="any"/>
              </labels>
              <fields>
                <field>file</field>
                <field>file/name</field>
              </fields>
              <properties mode="any">
                <property name="template">
                  /widgets/extended_subfile_widget.xhtml
                </property>
              </properties>
              <properties widgetMode="edit">
                <property name="required">true</property>
              </properties>
            </widget>
          </subWidgets>
        </widget>
  • <widget name="header_title_and_permlink" type="title_and_permlink">
          <fields>
            <field/>
          </fields>
          <labels>
            <label mode="any"/>
          </labels>
        </widget>
  • <widget name="header_description" type="textarea">
          <widgetModes>
            <mode value="any">
              #{currentDocument.folder==false or empty
              currentDocument.dublincore.description ?'hidden':mode}
            </mode>
          </widgetModes>
          <fields>
            <field>dc:description</field>
          </fields>
          <labels>
            <label mode="any"/>
          </labels>
          <properties mode="any">
            <property name="styleClass">
              currentDocumentDescription quote
            </property>
          </properties>
        </widget>
  • <widget name="bulk_collections" type="multipleDocumentsSuggestion">
          <labels>
            <label mode="any">label.collections</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>contextData['bulk_collections']</field>
          </fields>
          <properties widgetMode="any">
            <property name="minChars">0</property>
            <property name="hideHelpLabel">true</property>
            <property name="restoreSeamCtx">false</property>
            <property name="placeholder">label.addToCollection.collection.placeHolder</property>
            <property name="operationId">Collection.Suggestion</property>
            <property name="selectionFormatter">formatSelectedCollection</property>
            <property name="suggestionFormatter">formatSuggestedCollection</property>
            <property name="documentSchemas">dublincore,common</property>
          </properties>
        </widget>
  • <widget name="bulk_tags" type="select_tags">
          <labels>
            <label mode="any">label.search.tagSearch</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>contextData['bulk_tags']</field>
          </fields>
          <properties widgetMode="edit">
            <property name="canSelectNewTag">true</property>
            <property name="placeholder">
              #{messages['label.search.tags.placeholder']}
            </property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="nature" type="suggestOneDirectory">
      <labels>
        <label mode="any">label.dublincore.nature</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:nature</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.nature?'hidden':'view'}</mode>
      </widgetModes>
      <properties mode="any">
        <property name="width">100%</property>
        <property name="minChars">0</property>
        <property name="hideHelpLabel">true</property>
        <property name="directoryName">nature</property>
        <property name="localize">true</property>
      </properties>
    </widget>

    <widget name="subjects" type="suggestManyDirectory">
      <labels>
        <label mode="any">label.dublincore.subject</label>
      </labels>
      <helpLabels>
        <label mode="edit">label.dublincore.subjects.info</label>
      </helpLabels>
      <translated>true</translated>
      <fields>
        <field>dc:subjects</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.subjects?'hidden':'view'}</mode>
      </widgetModes>
      <properties mode="any">
        <property name="width">100%</property>
        <property name="dbl10n">true</property>
        <property name="minChars">0</property>
        <property name="hideHelpLabel">true</property>
        <property name="directoryName">l10nsubjects</property>
      </properties>
    </widget>

    <widget name="rights" type="text">
      <labels>
        <label mode="any">label.dublincore.rights</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:rights</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.rights?'hidden':'view'}</mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="source" type="text">
      <labels>
        <label mode="any">label.dublincore.source</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:source</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.source?'hidden':'view'}</mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="coverage" type="suggestOneDirectory">
      <labels>
        <label mode="any">label.dublincore.coverage</label>
      </labels>
      <helpLabels>
        <label mode="edit">label.dublincore.coverage.info</label>
      </helpLabels>
      <translated>true</translated>
      <fields>
        <field>dc:coverage</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.coverage?'hidden':'view'}</mode>
      </widgetModes>
      <properties mode="any">
        <property name="width">100%</property>
        <property name="dbl10n">true</property>
        <property name="minChars">0</property>
        <property name="hideHelpLabel">true</property>
        <property name="directoryName">l10ncoverage</property>
      </properties>
    </widget>

    <widget name="created" type="datetime">
      <labels>
        <label mode="any">label.dublincore.created</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:created</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.created?'hidden':'view'}</mode>
        <mode value="any">view</mode>
        <mode value="pdf">pdf</mode>
      </widgetModes>
      <properties widgetMode="any">
        <property name="pattern">#{nxu:basicDateAndTimeFormatter()}</property>
      </properties>
    </widget>

    <widget name="modified" type="datetime">
      <labels>
        <label mode="any">label.dublincore.modified</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:modified</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.modified?'hidden':'view'}</mode>
        <mode value="any">view</mode>
        <mode value="pdf">pdf</mode>
      </widgetModes>
      <properties widgetMode="any">
        <property name="pattern">#{nxu:basicDateAndTimeFormatter()}</property>
      </properties>
    </widget>

    <widget name="format" type="text">
      <labels>
        <label mode="any">label.dublincore.format</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:format</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.format?'hidden':'view'}</mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="language" type="text">
      <labels>
        <label mode="any">label.dublincore.language</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:language</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.language?'hidden':'view'}</mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="expired" type="datetime">
      <labels>
        <label mode="any">label.dublincore.expired</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:expired</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.expired?'hidden':'view'}</mode>
      </widgetModes>
      <properties widgetMode="any">
        <property name="pattern">#{nxu:basicDateFormatter()}</property>
      </properties>
      <properties widgetMode="edit">
        <property name="format">#{nxu:basicDateFormatter()}</property>
      </properties>
    </widget>

    <widget name="author" type="template">
      <labels>
        <label mode="any">label.dublincore.creator</label>
      </labels>
      <helpLabels>
        <label mode="edit">label.dublincore.author.info</label>
      </helpLabels>
      <translated>true</translated>
      <fields>
        <field>dc:creator</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.creator?'hidden':'view'}</mode>
        <mode value="any">view</mode>
        <mode value="pdf">pdf</mode>
      </widgetModes>
      <properties mode="any">
        <property name="template">
          /widgets/single_user_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="contributors" type="template">
      <labels>
        <label mode="any">label.dublincore.contributors</label>
      </labels>
      <helpLabels>
        <label mode="edit">label.dublincore.contributors.info</label>
      </helpLabels>
      <translated>true</translated>
      <fields>
        <field>dc:contributors</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.contributors?'hidden':'view'}
        </mode>
      </widgetModes>
      <properties mode="any">
        <property name="template">/widgets/contributors_widget.xhtml</property>
      </properties>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="lastContributor" type="template">
      <labels>
        <label mode="any">label.dublincore.lastContributor</label>
      </labels>
      <helpLabels>
        <label mode="edit">label.dublincore.lastContributor.info</label>
      </helpLabels>
      <translated>true</translated>
      <fields>
        <field>dc:lastContributor</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.lastContributor?'hidden':'view'}
        </mode>
        <mode value="any">view</mode>
        <mode value="pdf">pdf</mode>
      </widgetModes>
      <properties mode="any">
        <property name="template">
          /widgets/single_user_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="title" type="text">
      <labels>
        <label mode="any">title</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:title</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.title?'hidden':'view'}</mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="required">true</property>
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="description" type="textarea">
      <labels>
        <label mode="any">description</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>dc:description</field>
      </fields>
      <widgetModes>
        <mode value="view_summary">#{empty layoutValue.dc.description?'hidden':'view'}
        </mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="file" type="extendedFile">
      <labels>
        <label mode="any">label.file.content</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>file:content</field>
        <field>file:content/name</field>
      </fields>
    </widget>

    <widget name="note" type="richtext_with_mimetype">
      <labels>
        <label mode="any">note</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>note:note</field>
        <field>note:mime_type</field>
      </fields>
    </widget>

    <widget name="files" type="template">
      <labels>
        <label mode="any">label.files.files</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field schema="files">files</field>
      </fields>
      <properties mode="any">
        <property name="template">
          /widgets/files_list_widget_template.xhtml
        </property>
      </properties>
      <properties widgetMode="edit">
        <property name="diff">true</property>
      </properties>
      <subWidgets>
        <widget name="file" type="template">
          <labels>
            <label mode="any"/>
          </labels>
          <fields>
            <field>file</field>
            <field>file/name</field>
          </fields>
          <properties mode="any">
            <property name="template">
              /widgets/extended_subfile_widget.xhtml
            </property>
          </properties>
          <properties widgetMode="edit">
            <property name="required">true</property>
          </properties>
        </widget>
      </subWidgets>
    </widget>

    <widget name="header_title_and_permlink" type="title_and_permlink">
      <fields>
        <field/>
      </fields>
      <labels>
        <label mode="any"/>
      </labels>
    </widget>

    <widget name="header_description" type="textarea">
      <widgetModes>
        <mode value="any">
          #{currentDocument.folder==false or empty
          currentDocument.dublincore.description ?'hidden':mode}
        </mode>
      </widgetModes>
      <fields>
        <field>dc:description</field>
      </fields>
      <labels>
        <label mode="any"/>
      </labels>
      <properties mode="any">
        <property name="styleClass">
          currentDocumentDescription quote
        </property>
      </properties>
    </widget>

    <widget name="bulk_collections" type="multipleDocumentsSuggestion">
      <labels>
        <label mode="any">label.collections</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>contextData['bulk_collections']</field>
      </fields>
      <properties widgetMode="any">
        <property name="minChars">0</property>
        <property name="hideHelpLabel">true</property>
        <property name="restoreSeamCtx">false</property>
        <property name="placeholder">label.addToCollection.collection.placeHolder</property>
        <property name="operationId">Collection.Suggestion</property>
        <property name="selectionFormatter">formatSelectedCollection</property>
        <property name="suggestionFormatter">formatSuggestedCollection</property>
        <property name="documentSchemas">dublincore,common</property>
      </properties>
    </widget>

    <widget name="bulk_tags" type="select_tags">
      <labels>
        <label mode="any">label.search.tagSearch</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>contextData['bulk_tags']</field>
      </fields>
      <properties widgetMode="edit">
        <property name="canSelectNewTag">true</property>
        <property name="placeholder">
          #{messages['label.search.tags.placeholder']}
        </property>
      </properties>
    </widget>

  </extension>